#include "Logger.h"


std::shared_ptr<CLogger> CLogger::m_LoggerPtr = nullptr;
std::mutex CLogger::m_loggerMutex;
std::shared_ptr<CLogger> CLogger::getInstance()
{
	if (m_LoggerPtr == nullptr)
	{
		std::lock_guard<std::mutex> lockguard(m_loggerMutex);
		if (m_LoggerPtr == nullptr)
		{
			m_LoggerPtr.reset(new CLogger());
		}
	}
	return m_LoggerPtr;
}
